package com.lagou.tomcat.utils;

/**
 * 创建人: yyn
 * 创建时间:2021/9/5 17:43
 */
public class StaticResourceUtil {
    public static String getAbsolutePath(String path) {
        String absolutePath = StaticResourceUtil.class.getResource("/").getPath();
        return absolutePath.replaceAll("\\\\","/") + path;
    }

}
